package com.pair.micro.common.exception;

import com.pair.micro.common.constant.MicroBusinessError;
import lombok.Getter;

/**
 * 业务异常
 * @author xubz
 * @since
 *
 */
public class MicroBusinessException extends RuntimeException {

    @Getter
    private MicroBusinessError microBusinessError;

    public MicroBusinessException() {
        super(MicroBusinessError.BIS_10007.getMsg());
    }

    public MicroBusinessException(MicroBusinessError microBusinessError) {
        super(microBusinessError.getMsg());
        this.microBusinessError = microBusinessError;
    }

    public MicroBusinessException(MicroBusinessError microBusinessError, String exception) {
        super(exception);
        this.microBusinessError = microBusinessError;
    }


}
